package com.sj.purchase.modules.cost.repository.order;

import com.sj.purchase.modules.cost.domain.order.InOrder;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Date;
import java.util.List;

/**
 * Created by 宋开宗 on 2017/7/19 0019.
 */
public interface InOrderRepository extends JpaRepository<InOrder, String> {

    List<InOrder> findByCreateDateBetweenOrderByCreateDate(Date start, Date end);


    InOrder findFirstByOrderNo(String orderNo);

    /**
     * 通过入库单获取入库详情
     */
    InOrder findByOrderNo(String orderNo);
}
